package com.pro.pojo;

import java.util.Date;
import java.util.Objects;

/**
 * @Author 谭金诚
 * @Description TODO
 * @Date 2022/1/20 9:43
 * @Version 1.0
 */
public class JsCoursePlus extends JsCourse {

    private Integer toExamineId;//审核id
    private String title;//分类名称
    private String createName;//创建人名称
    private String result;//审批结果
    private Integer type;//审核类型

    public JsCoursePlus() {
    }

    public JsCoursePlus(Integer courseId, Integer userId, String userName, Integer classId, Integer recommend, String courseName, String courseIntro, Double coursePrice, Double courseNprice, Integer courseStatus, Integer courseCstatus, String coursePrimary, String url, String courseUrl, String courseInfo, Integer courseNo, Integer courseTime, Integer likeNum, Integer shareNum, Integer collectNum, Integer lookNum, Integer saleNum, Integer id, String createId, Date createDate, String updateId, Date updateDate, String courseLabel, String name, Integer dictCode, Integer dictType, Date updateTime, Integer dictSort, String trueName, String beforCourseNprice, String cssClass, String listClass, String updateBy, String remark) {
//        super(courseId, userId, userName, classId, recommend, courseName, courseIntro, coursePrice, courseNprice, courseStatus, courseCstatus, coursePrimary, url, courseUrl, courseInfo, courseNo, courseTime, likeNum, shareNum, collectNum, lookNum, saleNum, id, createId, createDate, updateId, updateDate, courseLabel, name, dictCode, dictType, updateTime, dictSort, trueName, beforCourseNprice, cssClass, listClass, updateBy, remark);
    }

    public JsCoursePlus(Integer toExamineId, String title, String createName, String result, Integer type) {
        this.toExamineId = toExamineId;
        this.title = title;
        this.createName = createName;
        this.result = result;
        this.type = type;
    }

    public JsCoursePlus(Integer courseId, Integer userId, String userName, Integer classId, Integer recommend, String courseName, String courseIntro, Double coursePrice, Double courseNprice, Integer courseStatus, Integer courseCstatus, String coursePrimary, String url, String courseUrl, String courseInfo, Integer courseNo, Integer courseTime, Integer likeNum, Integer shareNum, Integer collectNum, Integer lookNum, Integer saleNum, Integer id, String createId, Date createDate, String updateId, Date updateDate, String courseLabel, String name, Integer dictCode, Integer dictType, Date updateTime, Integer dictSort, String trueName, String beforCourseNprice, String cssClass, String listClass, String updateBy, String remark, Integer toExamineId, String title, String createName, String result, Integer type) {
//        super(courseId, userId, userName, classId, recommend, courseName, courseIntro, coursePrice, courseNprice, courseStatus, courseCstatus, coursePrimary, url, courseUrl, courseInfo, courseNo, courseTime, likeNum, shareNum, collectNum, lookNum, saleNum, id, createId, createDate, updateId, updateDate, courseLabel, name, dictCode, dictType, updateTime, dictSort, trueName, beforCourseNprice, cssClass, listClass, updateBy, remark);
        this.toExamineId = toExamineId;
        this.title = title;
        this.createName = createName;
        this.result = result;
        this.type = type;
    }

    public Integer getToExamineId() {
        return toExamineId;
    }

    public void setToExamineId(Integer toExamineId) {
        this.toExamineId = toExamineId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        JsCoursePlus that = (JsCoursePlus) o;
        return Objects.equals(toExamineId, that.toExamineId) &&
                Objects.equals(title, that.title) &&
                Objects.equals(createName, that.createName) &&
                Objects.equals(result, that.result) &&
                Objects.equals(type, that.type);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), toExamineId, title, createName, result, type);
    }

    @Override
    public String toString() {
        return "JsCoursePlus{" +
                "toExamineId=" + toExamineId +
                ", title='" + title + '\'' +
                ", createName='" + createName + '\'' +
                ", result='" + result + '\'' +
                ", type=" + type +
                '}';
    }
}
